<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/SecurityService.Criteria" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/SecurityService.Criteria" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://auth.hsmobile.vn/ActionSecurityService.svc?xsd=xsd2" namespace="http://www.yourcompany.com/types/" />
  <xs:complexType name="PermissionCriteria">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q1="http://www.yourcompany.com/types/" base="q1:Criteria">
        <xs:sequence>
          <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Id" type="xs:int" />
          <xs:element minOccurs="0" name="IdList" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="SiteId" type="xs:int" />
          <xs:element minOccurs="0" name="UserId" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="PermissionCriteria" nillable="true" type="tns:PermissionCriteria" />
  <xs:complexType name="PermissionInSiteCriteria">
    <xs:sequence>
      <xs:element minOccurs="0" name="PermissionId" type="xs:int" />
      <xs:element minOccurs="0" name="SiteId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PermissionInSiteCriteria" nillable="true" type="tns:PermissionInSiteCriteria" />
  <xs:complexType name="RoleCriteria">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q2="http://www.yourcompany.com/types/" base="q2:Criteria">
        <xs:sequence>
          <xs:element minOccurs="0" name="IdList" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="IsActive" type="xs:boolean" />
          <xs:element minOccurs="0" name="RoleId" type="xs:int" />
          <xs:element minOccurs="0" name="SiteId" type="xs:int" />
          <xs:element minOccurs="0" name="UserId" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="RoleCriteria" nillable="true" type="tns:RoleCriteria" />
  <xs:complexType name="RoleInSiteCriteria">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q3="http://www.yourcompany.com/types/" base="q3:Criteria">
        <xs:sequence>
          <xs:element minOccurs="0" name="IdList" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="PermissionId" type="xs:int" />
          <xs:element minOccurs="0" name="RoleId" type="xs:int" />
          <xs:element minOccurs="0" name="SiteId" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="RoleInSiteCriteria" nillable="true" type="tns:RoleInSiteCriteria" />
</xs:schema>